Skip to content

Conversation

@ilevkivskyi
Copy link
Member

This allows to re-enable one test skipped in parallel mode.

The previous solution for re-export of __all__ (see #10382) didn't work on incremental runs (see added test).

self.incomplete_namespaces = incomplete_namespaces
self.all_exports: list[str] = []
# Map from module id to list of explicitly exported names (i.e. names in __all__).
# This is used by stubgen/stubtest, DO NOT use for any other purposes as it is
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# This is used by stubgen/stubtest, DO NOT use for any other purposes as it is
# This is used by stubgen, DO NOT use for any other purposes as it is

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like it should be easy to remove this from stubgen entirely, i can make a PR after this is merged

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@hauntsaninja hauntsaninja merged commit da4796a into python:master Dec 30, 2025
23 checks passed
@ilevkivskyi ilevkivskyi deleted the fix-parallel-fo-2 branch December 30, 2025 00:58
hauntsaninja added a commit to hauntsaninja/mypy that referenced this pull request Dec 30, 2025
hauntsaninja added a commit to hauntsaninja/mypy that referenced this pull request Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants